package com.css.fxfzysx.modules.lifeline.constants;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

@Getter
@AllArgsConstructor
public enum SystemBasicDataEnum {

    NAME1(1,"DXGW"),
    NAME2(2,"SCSC"),
    NAME3(3,"RQCQG"),
    NAME4(4,"QL"),
    NAME5(5,"DL"),
    NAME6(6,"BDZ"),
    NAME7(7,"JKXL"),
    NAME8(8,"DLXL"),
    NAME9(9,"TXSNSB"),
    NAME10(10,"DST"),
    NAME11(11,"SCBF"),
    NAME12(12,"ZYFDCF"),
    NAME13(13,"JZ"),
    NAME14(14,"RQMZ"),
    NAME16(16,"ZDGC"),
    NAME17(17,"SKDB");

    private final Integer code;
    private final String name;


    public static String getByCode(Integer code) {
        for (SystemBasicDataEnum value : SystemBasicDataEnum.values()) {
            if(code.equals(value.code)){
                return value.name;
            }
        }
        return null;
    }
}
